package GameService;

public class Rules {
        public static boolean Judge(Cell c,int neighbourNum){
            if (c.isAlive())
            {
                if (neighbourNum != 2 && neighbourNum != 3)
                {
                   return false;
                }
                return true;
            }
            else
            {
                if (neighbourNum == 3)
                {
                    return true;
                }
                return false;
            }
        }

}
